package redemo5.dao1;

import org.springframework.stereotype.Repository;

@Repository
public class UserDAOImpl implements IUserDAO{
    public boolean findUser(){
        System.out.println("UserDAO:根据用户名,密码查找用户信息");
        double r=Math.random();
        if (r>0.5){
            System.out.println("UserDAO找到该用户信息并返回");
            return true;
        }else {
            System.out.println("UserDAO未找到该用户信息");
            return false;
        }
    }

}
